package com.intellagric.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class AgtSpecies implements Serializable {
    private String id;

    private String pid;

    private String speciesName;

    private String speciesAbstract;

    private String speciesContent;

    private String speciesCover;

    private String createdBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GM+8")
    private Date updatedTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GM+8")
    private Date createdTime;

    private String delFlag;

    private List<AgtSpecies> children;

    public List<AgtSpecies> getChildren() {
        return children;
    }

    public void setChildren(List<AgtSpecies> children) {
        this.children = children;
    }
    
    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid == null ? null : pid.trim();
    }

    public String getSpeciesName() {
        return speciesName;
    }

    public void setSpeciesName(String speciesName) {
        this.speciesName = speciesName == null ? null : speciesName.trim();
    }

    public String getSpeciesAbstract() {
        return speciesAbstract;
    }

    public void setSpeciesAbstract(String speciesAbstract) {
        this.speciesAbstract = speciesAbstract == null ? null : speciesAbstract.trim();
    }

    public String getSpeciesContent() {
        return speciesContent;
    }

    public void setSpeciesContent(String speciesContent) {
        this.speciesContent = speciesContent == null ? null : speciesContent.trim();
    }

    public String getSpeciesCover() {
        return speciesCover;
    }

    public void setSpeciesCover(String speciesCover) {
        this.speciesCover = speciesCover == null ? null : speciesCover.trim();
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy == null ? null : createdBy.trim();
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag == null ? null : delFlag.trim();
    }
}